package com.wei.czz.framework.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2021-05-30 17:46:34
 * className: BlogUserOperationEntity 用户操作博客表实体类
 * version: 1.0
 * description:
 * 	用户操作博客表
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_blog_user_operation")
public class BlogUserOperationEntity extends BaseEntity {

	/**
	 * 操作id
	 * 主键类型：自增主键
	 */
	@TableId(value = "opt_id", type = IdType.AUTO)
	private Long optId;

	/**
	 * 用户id
	 */
	private Long userId;

	/**
	 * 博客id
	 */
	private Long blogId;

	/**
	 * 操作类型[0-用户浏览 1-用户点赞 2-用户收藏 3-评论博客]
	 */
	private Integer optType;

	/**
	 * 操作时间
	 */
	private Date optTime;

}
